<?php
/**
 * Created by ModelCreater.
 * Date: 2023-09-22
 * Time: 17:30:10
 */

namespace model;

use lib\common\CommonModel;
use think\model\concern\SoftDelete;

class AdminPermissionModel extends CommonModel
{
    use SoftDelete;

    protected $table = 'admin_permission';
    protected $deleteTime = 'delete_time';
    protected $autoWriteTimestamp = 'datetime';
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    protected $hidden = ['delete_time'];
    protected $schema = [
        'id'          => 'int',
        'name'        => 'string',
        'remarks'     => 'string',
        'create_time' => 'datetime',
        'update_time' => 'datetime',
        'delete_time' => 'datetime',
    ];

    const ALLOWED_FIELDS = ['name', 'remarks'];
}
